﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master" AutoEventWireup="true" CodeFile="ProviderCarMakeModelRSA.aspx.cs" Inherits="provider_CarInsurance_ProviderCarMakeModelRSA" MaintainScrollPositionOnPostback="true" Title="View Car Make/Model - ComparExpress Provider Admin" %>


<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <script src="~/controls/CE_Date.js" type="text/javascript"></script>
    <div class="provider_inner">
        <h1>
            Add/Edit Car Make & Model</h1>
        <fieldset>
            <legend>CAR MAKE/MODEL</legend>
            <dl>
                <dt>
                    <label>
                        My Car Make</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlProviderCarMake" runat="server" AutoPostBack="true" Width="220px"
                        OnSelectedIndexChanged="ddlProviderCarMake_SelectedIndexChanged">
                    </asp:DropDownList>
                    <label class="rightlbl">
                        CX Car Make</label>
                    <asp:DropDownList ID="ddlCXCarMake" runat="server" AutoPostBack="true" Width="220px"
                        Enabled="false">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvProviderCarMake" runat="server" ErrorMessage="Select Car Make"
                        ControlToValidate="ddlProviderCarMake" InitialValue="-1" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        CX Car Model</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlCXCarModel" runat="server" AutoPostBack="true" Width="220px"
                        OnSelectedIndexChanged="ddlCXCarModel_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvProviderCarMake0" runat="server" ErrorMessage="Select Car Make"
                        ControlToValidate="ddlProviderCarMake" InitialValue="-1" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Car Model</label></dt>
                <dd>
                    <asp:TextBox ID="txtProviderCarModel" runat="server" Width="216px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvProviderCarModel0" runat="server" ErrorMessage="Enter your car model description."
                        ControlToValidate="txtProviderCarModel" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
             <dl>
                <dt>
                    <label>
                        Is Parallel</label></dt>
                <dd>
                     <asp:DropDownList ID="ddlIsParallel" runat="server" AutoPostBack="true" 
                         Width="80px" onselectedindexchanged="ddlIsParallel_SelectedIndexChanged">
                     <asp:ListItem Value="-1">Select</asp:ListItem>
                     <asp:ListItem Value="True">Yes</asp:ListItem>
                     <asp:ListItem Value="False">No</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Select If Parallel"
                        ControlToValidate="ddlIsParallel" InitialValue="-1" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset>
            <legend>CX DETAILS</legend>
            <dl>
                <dt>
                    <label>
                        Car Code</label></dt>
                <dd>
                    <asp:Label ID="lblCarCode" runat="server" CssClass="displaylbl"></asp:Label>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Body</label></dt>
                <dd>
                    <asp:Label ID="lblBody" runat="server" CssClass="displaylbl"></asp:Label>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        CC</label></dt>
                <dd>
                    <asp:Label ID="lblCC" runat="server" CssClass="displaylbl"></asp:Label>
                </dd>
            </dl>
        </fieldset>
        <fieldset>
            <legend>YOUR DETAILS</legend>
            <dl>
                <dt>
                    <label>
                        Body</label></dt>
                <dd>
                    
                    <asp:DropDownList ID="ddlBody" runat="server">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="CONVERTIBLE">Convertible</asp:ListItem>
                        <asp:ListItem Value="COUPE">Coupe</asp:ListItem>
                        <asp:ListItem Value="HATCHBACK">Hatchback</asp:ListItem>
                        <asp:ListItem Value="MPV">MPV</asp:ListItem>
                        <asp:ListItem Value="SALOON">Saloon</asp:ListItem>
                        <asp:ListItem Value="SEDAN">Sedan</asp:ListItem>
                        <asp:ListItem Value="SPORTS">Sports</asp:ListItem>
                        <asp:ListItem Value="SUV">SUV</asp:ListItem>
                        <asp:ListItem Value="STATIONWAGON">Stationwagon</asp:ListItem>
                    </asp:DropDownList>                    
                    <asp:RequiredFieldValidator ID="rfvBody" runat="server" ErrorMessage="Select Body"
                        ControlToValidate="ddlBody" InitialValue="-1" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        No. of Doors</label></dt>
                <dd>
                    <asp:TextBox ID="txtNoOfDoors" runat="server" MaxLength="1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNoOfDoors" runat="server" ErrorMessage="Enter Number of Doors"
                        ControlToValidate="txtNoOfDoors" Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revFromvalue0" runat="server" ControlToValidate="txtNoOfDoors"
                        ErrorMessage="No of doors value is not valid." ValidationExpression="\d{1}" ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        CC</label></dt>
                <dd>
                    <asp:TextBox ID="txtCC" runat="server" MaxLength="4"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCC" runat="server" ErrorMessage="Enter CC value"
                        ControlToValidate="txtCC" Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revFromvalue" runat="server" ControlToValidate="txtCC"
                        ErrorMessage="CC value is not valid." ValidationExpression="\d{3,4}" ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Turbo Engine</label></dt>
                <dd>
                    <asp:RadioButtonList ID="rdoTurbo" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">Yes</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">No</asp:ListItem>
                    </asp:RadioButtonList>
                </dd>
            </dl>          
            <dl>
                <dt>
                    <label>
                        Current Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtRate" runat="server" MaxLength="8"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvRate" runat="server" ErrorMessage="Enter Rate Value"
                        ControlToValidate="txtRate" Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revCCRate" runat="server" ControlToValidate="txtRate"
                        ErrorMessage="Rate value is not valid." ValidationExpression="^[1-9]\d*$"
                        ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
             <dl>
                <dt>
                    <label>
                        Schedule Rate Update</label></dt>
                <dd>
                   <asp:RadioButtonList runat="server" ID="rdoEffectivity"  RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="EffectiveWhen">
                   <asp:ListItem Value="Yes">Yes</asp:ListItem>
                   <asp:ListItem Value="No">No</asp:ListItem>                   
                   </asp:RadioButtonList>
                  
                </dd>
            </dl>
              <div id="divNewRate" runat="server" visible="false">
             <dl>
                <dt>
                    <label>
                        Effectivity Date</label></dt>
                <dd>
                   <uc1:usrDate ID="usrEffectivityDate" ValidationGroup="makemodel" runat="server" IsNotLessThanToday="true" />
                  
                </dd>
            </dl>
            
             <dl>
                <dt>
                    <label>
                        New Rate</label></dt>
                <dd>
                    <asp:TextBox ID="txtNewRate" runat="server" MaxLength="5"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Enter new rate." Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revNewRate" runat="server" ControlToValidate="txtNewRate"
                        ErrorMessage="Rate is not valid." ValidationGroup="makemodel" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            </div>
            <dl>
                <dt>
                    <label>
                        Agent</label></dt>
                <dd>
                    <asp:TextBox ID="txtAgent" runat="server" MaxLength="1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAgent" runat="server" ErrorMessage="Enter Agent"
                        ControlToValidate="txtAgent" Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revFromvalue1" runat="server" ControlToValidate="txtAgent"
                        ErrorMessage="Agent value is not valid." ValidationExpression="\d{1}" ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        UW</label></dt>
                <dd>
                    <asp:TextBox ID="txtUW" runat="server" MaxLength="1"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvUW" runat="server" ErrorMessage="Enter UW" ControlToValidate="txtUW"
                        Display="Dynamic" ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revFromvalue2" runat="server" ControlToValidate="txtUW"
                        ErrorMessage="UW value is not valid." ValidationExpression="\d{1}" ValidationGroup="makemodel"></asp:RegularExpressionValidator>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Is Refer?</label></dt>
                <dd>
                    <asp:RadioButtonList ID="rdoRefer" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="True">Yes</asp:ListItem>
                        <asp:ListItem Value="False" Selected="True">No</asp:ListItem>
                    </asp:RadioButtonList>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        <asp:Label ID="lblStatus" runat="server" Text="Status"></asp:Label></label></dt>
                <dd>
                    <asp:CheckBox ID="chkStatus" runat="server" />
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Auth Code</label></dt>
                <dd>
                    <asp:TextBox ID="txtAuthCode" runat="server" TextMode="Password" MaxLength="12" Width="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvAuthCode" runat="server" ControlToValidate="txtAuthCode"
                        ErrorMessage="Enter auth code." ValidationGroup="makemodel"></asp:RequiredFieldValidator>
                </dd>
            </dl>
        </fieldset>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" CssClass="left_btn" ImageUrl="~/Provider/images/buttons/back1.gif"
                OnClick="ibtBack_Click" />
            <asp:ImageButton ID="btnSave" runat="server" CssClass="float_btn" ImageUrl="~/Provider/images/buttons/save1.gif"
                OnClick="btnSave_OnClick" ValidationGroup="makemodel" />
            <asp:ImageButton ID="btnNew" runat="server" OnClick="btnNew_Click" CssClass="floatnext_btn"
                ImageUrl="~/Provider/images/buttons/new1.gif" />
                 <asp:ImageButton ID="btnDelete" CssClass="floatnext_btn" runat="server" OnClientClick="return confirm('Are you sure you want to remove this record?');"
                ImageUrl="~/Provider/images/buttons/delete1.gif" OnClick="btnDelete_Click" />
        </fieldset>
        <asp:Label ID="lblMessage" runat="server" CssClass="successmsg"></asp:Label>
    </div>
</asp:Content>
